//
//  UITableView+Helper.h
//  Local
//
//  Created by 刘铎 on 13-12-15.
//  Copyright (c) 2013年 上海即略网络信息科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJRefreshHeaderView.h"
#import "MJRefreshFooterView.h"

@interface UITableView (Helper)

@property (nonatomic, strong, readonly) MJRefreshHeaderView *refreshHeaderView;
@property (nonatomic, strong, readonly) MJRefreshFooterView *loadMoreFooterView;

- (void)scrollToBottomAnimated:(BOOL)animated;

// 添加下拉刷新
- (void)addRefreshHeaderWithRefreshBlock:(void (^)(MJRefreshBaseView *refreshView))refreshBlock;

// 添加下拉加载更多
- (void)addLoadMoreFooterWithLoadMoreBlock:(void (^)(MJRefreshBaseView *refreshView))loadMoreBlock;

@end
